package org.yefei.homeworkday27;

import java.lang.reflect.Method;
import java.util.Calendar;
import java.util.Locale;

public class One {

	public static void main(String[] args) throws Exception {
		// 1:调用Calendar的getInstance方法，获得Calendar对象(反射调用)
		Class<Calendar> c = Calendar.class;
		Method d = c.getDeclaredMethod("getInstance");
		Calendar ca = (Calendar) d.invoke(null);
		int weekYear = ca.getWeekYear();
		System.out.println(weekYear);
	}
}
